import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;

/**
 * Created with IntelliJ IDEA.
 * User: thoughtworker
 * Date: 10/10/13
 * Time: 1:09 PM
 * To change this template use File | Settings | File Templates.
 */
public class League {

    private PrintStream printer;
    private Collection<Player> listOfAllPlayers;
    private Collection<Coach> listOfAllCoaches;

    public League(PrintStream printer, Collection<Player> listOfAllPlayers, Collection<Coach> listOfAllCoaches) {
        this.printer = printer;
        this.listOfAllCoaches = listOfAllCoaches;
        this.listOfAllPlayers = listOfAllPlayers;
    }

    public void displayInfoOfAllPlayers() {
        for(Player player : listOfAllPlayers) {
            player.displayPlayerInfo(printer);
        }
    }

    public void displayInfoOfAllCoaches() {
        for(Coach coach : listOfAllCoaches) {
            coach.displayCoachInfo(printer);
        }
    }

}
